package cn.hfatec.freemarker;

import org.springframework.ui.Model;

import java.util.Map;

/**
 * @author: panwb
 *
 * Date: 2015/3/3
 * Time: 17:20
 */
public abstract class RenderUtil {

    protected static RenderUtil FREEMAKER_RENDER_UTIL = new FreemarkerRender();

    public abstract Map render(String name,Model model) throws Exception;

    public abstract String render(String name, Map map) throws Exception;
}
